/**
 * 
 */
package com.ams.service;

import com.ams.dao.SampleDao;
import com.ams.entity.User;

/**
 * encoding=UTF-8
 *
 * @author Yang Ji
 *Aug 23, 2011   10:21:29 PM
 */
public class SampleServiceImp implements SampleService {

	private SampleDao sampleDao;
	/* (non-Javadoc)
	 * @see com.ams.service.SampleService#checkUser(java.lang.String, java.lang.String)
	 */
	@Override
	public User checkUser(String name, String password) {
		User user=null;
		try
		{
			user=sampleDao.CheckUser(name, password);
		}catch(Exception e){
			e.printStackTrace();
		}
		return user;
	}
	public void setSampleDao(SampleDao sampleDao) {
		this.sampleDao = sampleDao;
	}
	
	

}
